﻿#include <stdio.h>

#include <minigui/common.h>
#include <minigui/minigui.h>
#include <minigui/gdi.h>
#include <minigui/window.h>

//#include "minigui_api.h"
#include "minigui_test.h"
#include "widget_test.h"


int MiniGUIMain (int argc, const char* argv[])
{

#ifdef _MGRM_PROCESSES
		JoinLayer(NAME_DEF_LAYER , "scrollbar" , 0 , 0);
#endif


	int s32Type;
	do {
		MINI_INPUT_GetInt(&s32Type, "选择需要测试的功能 :\n\
1.minigui功能测试\n\
2.minigui部件接口测试\n\
0.退出\n:");

		if(s32Type == 1) {
			MINIGUI_TEST_mini();
		} else if(s32Type == 2) {
			WIDGET_TEST_Start();
		} else if(s32Type == 0) {
			return 0;
		}else {
			SLOG(DBG, "无效的输入参数!!!!\n");
			s32Type = 0;
		}
	} while(0);

	return 0;
}

#ifdef _MGRM_THREADS
#include <minigui/dti.c>
#endif


